A5Storage::DataContainer DeleteItem Method

Syntax

.DeleteItem as L (TargetPath as C)

Arguments

TargetPathCharacter

The object to delete.

Returns

ResultLogical

Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)

Description

Deletes an object in a container. If the object doesn't exist, no error is returned.

Example

dim Container as A5Storage::DataContainer = null_value()
dim Item as A5Storage::DataItem = null_value()

CallResult = A5Storage::DataContainer::Open(Container, "Provider='Disk';Container='c:\A5Webroot';")
? CallResult.Success
= .T.

? Container.DeleteItem("MyTargetPath/MyObject")
= .T.